package com.mt.fpb.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface BalanceMapper {

    //插入余额的方法
    int insertInfo(@Param(value = "name") String name, @Param(value = "idCard") String idCard, @Param(value = "personalBalance") float personalBalance);

    //根据名字和身份证更新余额的方法
    void updateInfo(@Param(value = "name") String name, @Param(value = "idCard") String idCard, @Param(value = "personalBalance") float personalBalance);

    //查询个人可体现余额的方法
    Map<String,Object> selectBalance(@Param(value = "name") String name, @Param(value = "idCard") String idCard);
}
